package net.mlike.openssp.server.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Created by wallellen@hotmail.com on 5/26/18.
 */
@Controller
@RequestMapping("/admin")
public class AdminController {
    @RequestMapping(value = {"/index", "/index.html", ""}, method = RequestMethod.GET)
    public String index() {
        return "admin/index";
    }

    @RequestMapping(value = {"/login", "/login.html"}, method = RequestMethod.GET)
    public String login() {
        return "admin/login";
    }
}
